home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…tion Library 2 (Reseller)
/
Apple R&P Lib Reseller v2.0.iso
/
4-Fonts & Software
/
Demo Software
/
AppMaker
/
Demo AppMaker™
/
Demo AppMaker™.rsrc
/
TmpC_207_FontMenu
< prev
next >
Wrap
Text File
|
1989-04-09
|
820b
|
50 lines
/* %filename% */
/* Created %date% %time% by AppMaker */
%If MPW%
#include <Types.h>
#include <Quickdraw.h>
#include <Controls.h>
#include <Dialogs.h>
#include <Events.h>
#include <Lists.h>
#include <Menus.h>
#include <TextEdit.h>
%end if%
#include "Globals.h"
#include "ResourceDefs.h"
#include "Miscellany.h"
%UsesDialogs%
#include "%unitname%.h"
%If MPW%
#include <Fonts.h>
%end if%
short nrFonts;
%If MPW%
#pragma segment %unitname%
%end if%
/*----------*/
void Init%MenuName% ()
{
nrFonts = CountMItems (FontMenu);
} /*Init%MenuName%*/
%DoMenuItems%
/*----------*/
void Choose%MenuName% (itemNr)
short itemNr;
{
Str255 fontName;
short fontNum;
DoRadioMenu (%menuName%Menu, 1, nrFonts, itemNr);
GetItem (%menuName%Menu, itemNr, fontName);
GetFNum (fontName, &fontNum);
} /*Choose%MenuName%*/